﻿<Window x:Class="BacteriaSimulation.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="929" Width="1405" WindowStartupLocation="CenterOwner">
    <Grid>
        <Canvas Name="SimulationCanvas" HorizontalAlignment="Left" Height="694" Margin="10,10,0,0" VerticalAlignment="Top" Width="1374" RenderTransformOrigin="0.5,0.5" Background="#FFFDF3C7"/>
        <Canvas Name="controlCanvas" HorizontalAlignment="Left" Height="180" Margin="10,709,0,0" VerticalAlignment="Bottom" Width="1374">
            <Button Name="StartButton" Content="Start" Canvas.Left="10" Canvas.Top="15" Width="75" Click="StartButton_Click"/>
            <Button Name="PauseButton" Content="Pause" Canvas.Left="90" Canvas.Top="15" Width="75" Click="Button_Click_1"/>
            <Button Name="StopButton" Content="Stop" Canvas.Left="250" Canvas.Top="15" Width="75" Click="StopButton_Click"/>
            <Button Name="ResumeButton" Content="Resume" Canvas.Left="170" Canvas.Top="15" Width="75" Click="ResumeButton_Click"/>
            <Button Content="Dump index" Canvas.Left="330" Canvas.Top="15" Width="85" RenderTransformOrigin="-0.24,-0.227" Click="Button_Click_2"/>
            <Label x:Name="lblAvalaibleResources" Content="Avalaible Energy Resources: " Canvas.Left="420" Canvas.Top="15" Width="320"/>
            <Label Content="Max Energy:" HorizontalAlignment="Left" VerticalAlignment="Top" RenderTransformOrigin="0.257,0.538" Canvas.Left="298" Canvas.Top="64"/>
            <TextBox x:Name="txtMaxEnergy" HorizontalAlignment="Left" Height="24" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Canvas.Left="471" Canvas.Top="66"/>
            <Label Content="Initial Energy:" HorizontalAlignment="Left" VerticalAlignment="Top" Canvas.Left="298" Canvas.Top="92"/>
            <TextBox x:Name="txtInitialEnergy" HorizontalAlignment="Left" Height="24" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Canvas.Left="471" Canvas.Top="94"/>
            <TextBox x:Name="txtCyanobacteriumSpeed" HorizontalAlignment="Left" Height="24" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Canvas.Left="471" Canvas.Top="122"/>
            <Label Content="Speed:" HorizontalAlignment="Left" VerticalAlignment="Top" Canvas.Left="298" Canvas.Top="120"/>
            <Label Content="Bacterium Energy Increment:" HorizontalAlignment="Left" VerticalAlignment="Top" Canvas.Left="298" Canvas.Top="150"/>
            <TextBox x:Name="txtCyanoEnergyInc" HorizontalAlignment="Left" Height="22" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Canvas.Left="471" Canvas.Top="154"/>
            <ComboBox x:Name="cmbDetectCollision" HorizontalAlignment="Left" VerticalAlignment="Top" Width="120" SelectedIndex="0" Canvas.Left="162" Canvas.Top="96" />
            <Label Content="Detect Collision:" HorizontalAlignment="Left" VerticalAlignment="Top" Canvas.Left="14" Canvas.Top="92"/>
            <Button x:Name="AddButton" Content="Add CyanoBacterium" Click="AddButton_Click" BorderBrush="Green"
            	VerticalAlignment="Top" HorizontalAlignment="Left" Height="50" Width="130" Canvas.Left="596" Canvas.Top="96">
                <Button.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFF3F3F3" Offset="0"/>
                        <GradientStop Color="#FFEBEBEB"/>
                        <GradientStop Color="Green" Offset="1"/>
                    </LinearGradientBrush>
                </Button.Background>
            </Button>
            <Button x:Name="AddCannibalBacteriumButton" Content="Add CannibalBacterium" Click="AddCannibalBacteriumButton_Click" BorderBrush="Red"
            	VerticalAlignment="Top" HorizontalAlignment="Left" Height="50" Width="130" Canvas.Left="1053" Canvas.Top="96">
                <Button.Background>
                    <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                        <GradientStop Color="#FFF3F3F3" Offset="0"/>
                        <GradientStop Color="#FFEBEBEB"/>
                        <GradientStop Color="#FFDDDDDD"/>
                        <GradientStop Color="Red" Offset="1"/>
                    </LinearGradientBrush>
                </Button.Background>
            </Button>
            <Label Content="Max Energy:" HorizontalAlignment="Left" VerticalAlignment="Top" Canvas.Left="755" Canvas.Top="64"/>
            <TextBox x:Name="txtCannibalMaxEnergy" HorizontalAlignment="Left" Height="24" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Canvas.Left="928" Canvas.Top="66"/>
            <Label Content="Initial Energy:" HorizontalAlignment="Left" VerticalAlignment="Top" Canvas.Left="755" Canvas.Top="92"/>
            <TextBox x:Name="txtCannibalInitialEnergy" HorizontalAlignment="Left" Height="24" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Canvas.Left="928" Canvas.Top="94"/>
            <TextBox x:Name="txtCannibalBacteriumSpeed" HorizontalAlignment="Left" Height="24" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Canvas.Left="928" Canvas.Top="122"/>
            <Label Content="Speed:" HorizontalAlignment="Left" VerticalAlignment="Top" Canvas.Left="755" Canvas.Top="120"/>
            <Label Content="Bacterium Energy Increment:" HorizontalAlignment="Left" VerticalAlignment="Top" Canvas.Left="755" Canvas.Top="150"/>
            <TextBox x:Name="txtCannibalEnergyInc" HorizontalAlignment="Left" Height="22" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Canvas.Left="928" Canvas.Top="154"/>
            <Label x:Name="cyanoCountLabel" Content="" HorizontalAlignment="Left" VerticalAlignment="Top" Width="124" Canvas.Left="614" Canvas.Top="64"/>
            <Label x:Name="cannibalCountLabel" Content="" HorizontalAlignment="Left" VerticalAlignment="Top" Width="139" Canvas.Left="1060" Canvas.Top="64"/>
            <TextBox x:Name="rowCountTxt" HorizontalAlignment="Left" Height="24" TextWrapping="Wrap" Text="20" VerticalAlignment="Top" Width="53" Canvas.Left="162" Canvas.Top="122"/>
            <Label Content="Grid:" HorizontalAlignment="Left" VerticalAlignment="Top" RenderTransformOrigin="-0.026,0.231" Canvas.Left="14" Canvas.Top="120"/>
            <TextBox x:Name="columnCountTxt" HorizontalAlignment="Left" Height="24" TextWrapping="Wrap" Text="40" VerticalAlignment="Top" Width="53" Canvas.Left="229" Canvas.Top="120"/>
            <CheckBox x:Name="chkDrawGrid" Content="Draw grid" HorizontalAlignment="Left" VerticalAlignment="Top" RenderTransformOrigin="-1.382,-0.188" Checked="chkDrawGrid_Checked" Canvas.Left="14" Canvas.Top="42"/>
            <Label x:Name="labelResource" Content="Initial Energy Resource:" HorizontalAlignment="Left" VerticalAlignment="Top" Canvas.Left="14" Canvas.Top="62"/>
            <TextBox x:Name="initialMassResourceTextBox" HorizontalAlignment="Left" Height="24" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Text="10360" UndoLimit="10" Canvas.Left="162" Canvas.Top="66"/>
            <Label x:Name="lblMutation" Content="Mutation probability:" HorizontalAlignment="Left" VerticalAlignment="Top" Canvas.Left="14" Canvas.Top="150"/>
            <TextBox x:Name="txtMutationProbability" HorizontalAlignment="Left" Height="22" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Canvas.Left="162" Canvas.Top="154"/>
        </Canvas>

    </Grid>
</Window>
